﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace ClubInfrostructure
{ 


    public class ClubInformation
    {
        public int _clubID;
        public string _presidentFIO;
        public int _championship;
        public string _clubName;
        public string _country;
        public DateTime _foundationDate;
        public static int clubsAmount;
        public int _team;

        public ClubInformation()
        {
            this._clubID = clubsAmount++;
            this._clubName = null;
            this._country = null;
            this._presidentFIO = null;
            this._championship = 0;
            this._foundationDate = Convert.ToDateTime("01/01/0001");
            this._team = 0;
        }

        #region рекусривный контсруктор
        /*
        public ClubInformation(string name):this()
        {
            this._clubName = name;      
        }

        public ClubInformation(string name, string country)
            : this(name)
        {
            this._country = country;
        }

        public ClubInformation(string name, string country, string presidentFIO)
            : this(name, country)
        {
            this._presidentFIO = presidentFIO;
        }
        public ClubInformation(string name, string country, string presidentFIO, int  championship)
            : this(name, country,presidentFIO )
        {
            this._championship = championship;
        }
        public ClubInformation(string name, string country, string presidentFIO, int  championship,string foundationDate)
            : this(name, country, presidentFIO ,championship )
        {
            this._foundationDate = Convert.ToDateTime ( foundationDate);
        } 
         * */
#endregion

        static ClubInformation ()
        {
            clubsAmount = 0; 
        }

        public void CreateNewClub(string name, string country, string presidentFIO, int  championship,string foundationDate)   
        {
            this._clubID = clubsAmount++;
            this._clubName = name ;
            this._country = country ;
            this._presidentFIO = presidentFIO ;
            this._championship = championship ;
            this._foundationDate = Convert.ToDateTime(foundationDate);
        }

        public void ChangeTeam(int clubID, int teamID)
        {
            this._clubID = clubID ;
            this._team  = teamID ;
        }

        public void ChangePresident(int clubID, string  presidentFIO)
        {
            this._clubID = clubID;
            this._presidentFIO = presidentFIO ;
        }

        public void ChangeChampionship(int clubID, int championshipID)
        {
            this._clubID = clubID;
            this._championship =  championshipID ;
        }
    }
}